import request from '@/utils/request'

// 查询工作经历表列表
export function listWork_history(query) {
  return request({
    url: '/ehr/work_history/list',
    method: 'get',
    params: query
  })
}

// 查询工作经历表详细
export function getWork_history(workHistoryId) {
  return request({
    url: '/ehr/work_history/' + workHistoryId,
    method: 'get'
  })
}

// 新增工作经历表
export function addWork_history(data) {
  return request({
    url: '/ehr/work_history',
    method: 'post',
    data: data
  })
}

// 修改工作经历表
export function updateWork_history(data) {
  return request({
    url: '/ehr/work_history',
    method: 'put',
    data: data
  })
}

// 删除工作经历表
export function delWork_history(workHistoryId) {
  return request({
    url: '/ehr/work_history/' + workHistoryId,
    method: 'delete'
  })
}

